<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let str = "<div><p><b><span><%ac->";

      // console.log(str.match(/<[a-z]{1,10}>/g));
      // 贪婪
      console.log(str.match(/<.+?>/g));
      console.log(str.match(/<.{1,}?>/g));
    </script>
  </body>
</html>
